<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
</head>

<body>
<table id="flexquyengroups" style="display:none"></table>

<script type="text/javascript">

			$("#flexquyengroups").flexigrid
			(
			{
			url: 'modules/quyengroups/griddata.php?magrp='+encodeURI('<?php echo $_GET["magrp"];?>'),
			dataType:"xml",
			colModel : [
				{display: 'id', name : 'id', width : 100, sortable : true, align: 'center',hide:true},
				{display: 'Mã module', name : 'mamod', width : 100, sortable : true, align: 'center',hide:true},
				{display: 'Module', name : 'tenmod', width : 200, sortable : true, align: 'center'},
				{display: 'Xem', name : 'select_r', width : 50, sortable : true, align: 'right'},
				{display: 'Thêm', name : 'insert_r', width : 50, sortable : true, align: 'right'},
				{display: 'Sửa', name : 'update_r', width : 50, sortable : true, align: 'right'},
				{display: 'Xóa', name : 'delete_r', width : 50, sortable : true, align: 'right'}
				],
			searchitems : [
				{display: 'Module', name : 'tenmod', isdefault: true},
				{display: 'Xem', name : 'select_r'},
				{display: 'Thêm', name : 'insert_r'},
				{display: 'Sửa', name : 'update_r'},
				{display: 'Xóa', name : 'delete_r'}
				],
			usepager: true,
			useRp: true,
			rp: 20,
			showTableToggleBtn: true,
			width: 500,
			height: 300,
			singleSelect:true
			});
</script>
</body>
</html>
